package com.edt.ichannel.rabbitmq.stater;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;



@SpringBootApplication(scanBasePackages = {"com.edt.ichannel.rabbitmq.receiver"})
@EnableTransactionManagement
@EnableRabbit
public class IchannelRabbitmqStaterApplication  extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(IchannelRabbitmqStaterApplication.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(IchannelRabbitmqStaterApplication.class);
    }

}
